package jp.idahopotato.activity;

import jp.matome.activity.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class ProtecSetActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO 自動生成されたメソッド・スタブ
		super.onCreate(savedInstanceState);
		setContentView(R.layout.protecselect);

		Intent data = getIntent();
		Bundle extras = data.getExtras();
		String str = extras.getString("SELECT_MENU");

		TextView title = (TextView)findViewById(R.id.text_prosel);
		title.setText(str);

		Button button = (Button)findViewById(R.id.backbutton_prosel);
		button.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = getIntent();

				intent.putExtra("RETURN_FLAG", "防具絞込み設定から");

				setResult(RESULT_OK, intent);
				finish();
			}
		});
	}

}
